﻿/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author Esanantonio
 */
Cognitum.Polizas.SubRamo.Entity = function(){
    if (LOG.isDebugEnabled()) {
        LOG.debug('[SubRamo.Entity.ctor] <-');
    }
    Cognitum.Polizas.SubRamo.Entity.superclass.constructor.call(this, false, true);
}

Ext.extend(Cognitum.Polizas.SubRamo.Entity, Karma.Core.Entity, {
    id: 'SubRamo.Entity',
    name: 'SubRamos',
    editorXType: 'subRam.editor',
	editorH: 300,
	editorW: 350,
    columns: [{
        Name: 'Id',
        Property: 'Id',
        Mostrar: false
    }, {
        Name: 'Clave',
        Property: 'Clave'
    }, {
        Name: 'Nombre',
        Property: 'Nombre'
    }, {
        Name: 'Flotilla',
        Property: 'Flotilla',
        Tipo: 'logico'
    }],
    searchlist: {
        sortings: ['Clave'],
        views: [{
            Id: 0,
            Nombre: 'Normal',
            Template: null
        }, {
            Id: 1,
            Nombre: 'Expandida',
            Template: null
        }],
        previewTemplate: null
    },
    link: {
		displayProperty: new Ext.XTemplate('{Nombre} [{Clave}]'),
		tpl: '{Nombre} [{Clave}]'
    }
});

Cognitum.SubRamos = Cognitum.Polizas.SubRamo.Entity;
